package com.usian.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;
import com.usian.model.media.vos.WmNewsVo;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult saveNews(WmNewsDto wmNews);

    ResponseResult findWmNewsById(Long id);

    ResponseResult delNews(Long id);

    ResponseResult downOrUp(Long id,Short enable);

    List<Long> findRelease();

    /**
     * 查询文章列表
     * @param dto
     * @return
     */
    ResponseResult findList(NewsAuthDto dto);

    /**
     * 查询文章详情
     * @param id
     * @return
     */
    WmNewsVo findWmNewsVo(Long id) ;
}
